import Layout from '@/layouts';

export default [
  {
    path: '/cgzh',
    component: Layout,
    redirect: '/cgzh/home',
    meta: {
      // title: '成果综合管理',
      title: '成果推广',
      isOrNot: true,
    },
    children: [
      {
        path: 'home',
        component: () => import('@/pages/cgzh/home.vue'),
        meta: {title: '首页', icon: 'view-module'},
      },
      {
        path: 'approve',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/cgzh/approve/approve-my',
        meta: { title: '审批管理', icon: 'view-module'},
        children: [
          {
            path: 'approve-my',
            component: () => import('@/pages/cgzh/approve/approve-my.vue'),
            meta: { title: '待我审批记录'},
          },
          {
            path: 'approved-my',
            component: () => import('@/pages/cgzh/approve/approved-my.vue'),
            meta: { title: '我已审批记录'},
          },
        ]
      },
      {
        path: 'result',
        component: () => import('@/layouts/blank.vue'),
        redirect: '/cgzh/result/result-my',
        meta: {title: '成果录入管理', icon: 'view-module'},
        children: [
          {
            path: 'result-list',
            component: () => import('@/pages/cgzh/result/result-unit.vue'),
            meta: { title: '成果列表'},
          },
          {
            path: 'result-my',
            component: () => import('@/pages/cgzh/result/result-my.vue'),
            meta: { title: '我的成果'},
          },
        ]
      },
      {
        path: 'dispatch',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '调度表管理', icon: 'view-module'},
        children: [
          {
            path: 'list',
            component: () => import('@/pages/cgzh/dispatch/list.vue'),
            meta: { title: '调度表列表'},
          },
          {
            path: 'myList',
            component: () => import('@/pages/cgzh/dispatch/myList.vue'),
            meta: { title: '我的调度表'},
          },
        ]
      },
      {
        path: 'thesis',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '论文管理', icon: 'view-module'},
        children: [
          {
            path: 'thesis-index',
            component: () => import('@/pages/cgzh/thesis/thesis-index.vue'),
            meta: { title: '论文列表'},
          },
          {
            path: 'thesis-my',
            component: () => import('@/pages/cgzh/thesis/thesis-my.vue'),
            meta: { title: '我的论文'},
          },
        ]
      },
      {
        path: 'treatise',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '著作管理', icon: 'view-module'},
        children: [
          {
            path: 'treatise-index',
            component: () => import('@/pages/cgzh/treatise/treatise-index.vue'),
            meta: { title: '著作列表'},
          },
          {
            path: 'treatise-my',
            component: () => import('@/pages/cgzh/treatise/treatise-my.vue'),
            meta: { title: '我的著作'},
          },
        ]
      },
      {
        path: 'patent',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '专利管理', icon: 'view-module'},
        children: [
          {
            path: 'patent-index',
            component: () => import('@/pages/cgzh/patent/patent-index.vue'),
            meta: { title: '专利列表'},
          },
          {
            path: 'patent-my',
            component: () => import('@/pages/cgzh/patent/patent-my.vue'),
            meta: { title: '我的专利'},
          },
        ]
      },
      {
        path: 'copyright',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '软件著作权管理', icon: 'view-module'},
        children: [
          {
            path: 'copyright-index',
            component: () => import('@/pages/cgzh/copyright/copyright-index.vue'),
            meta: { title: '软件著作权列表'},
          },
          {
            path: 'copyright-my',
            component: () => import('@/pages/cgzh/copyright/copyright-my.vue'),
            meta: { title: '我的软件著作权'},
          },
        ]
      },
      {
        path: 'awards',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '获奖管理', icon: 'view-module'},
        children: [
          {
            path: 'awards-index',
            component: () => import('@/pages/cgzh/awards/awards-index.vue'),
            meta: { title: '获奖列表'},
          },
          {
            path: 'awards-my',
            component: () => import('@/pages/cgzh/awards/awards-my.vue'),
            meta: { title: '我的获奖'},
          },
        ]
      },
      // {
      //   path: 'defend1',
      //   component: () => import('@/layouts/blank.vue'),
      //   meta: {title: '教材管理', icon: 'view-module'},
      //   children: [
      //   ]
      // },
      // {
      //   path: 'result-analysis',
      //   component: () => import('@/layouts/blank.vue'),
      //   redirect: '/cgzh/result-analysis/analysis',
      //   meta: {title: '艺术作品', icon: 'view-module'},
      //   children: [
      //   ]
      // },
      {
        path: 'defend3',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '标准管理', icon: 'view-module'},
        children: [
        ]
      },
      {
        path: 'defend4',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '人才管理', icon: 'view-module'},
        children: [

        ]
      },
      {
        path: 'other',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '其他管理', icon: 'view-module'},
        children: [
          {
            path: 'other-index',
            component: () => import('@/pages/cgzh/other/other-index.vue'),
            meta: { title: '其他列表'},
          },
          {
            path: 'other-my',
            component: () => import('@/pages/cgzh/other/other-my.vue'),
            meta: { title: '我的其他'},
          },
        ]
      },
      {
        path: 'evaluate',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '评价管理', icon: 'view-module'},
        children: [
          {
            path: 'evaluate-index',
            component: () => import('@/pages/cgzh/evaluate/evaluate-index.vue'),
            meta: { title: '评价列表'},
          },
          {
            path: 'evaluate-my',
            component: () => import('@/pages/cgzh/evaluate/evaluate-my.vue'),
            meta: { title: '我的评价'},
          },
        ]
      },
      {
        path: 'extend',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '推广管理', icon: 'view-module'},
        children: [
          {
            path: 'extend-index',
            component: () => import('@/pages/cgzh/extend/extend-index.vue'),
            meta: { title: '推广列表'},
          },
          {
            path: 'extend-my',
            component: () => import('@/pages/cgzh/extend/extend-my.vue'),
            meta: { title: '我的推广'},
          },
        ]
      },

      {
        path: 'defend7',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '学术交流', icon: 'view-module'},
        children: [
        ]
      },
      {
        path: 'ministry-result',
        component: () => import('@/layouts/blank.vue'),
        meta: {title: '部成果管理', icon: 'view-module'},
        children: [
          {
            path: 'extend-index',
            component: () => import('@/pages/cgzh/ministry-result/road-result.vue'),
            meta: { title: '道路组成果'},
          }
        ]
      },

    ]
  }
]
